package top.healthylife.gateway.platform.bank.api.api;


import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.bank.dto.business.req.BankReqBusinessCreditReportSingleDto;
import top.healthylife.gateway.platform.bank.dto.business.res.BankResBusinessCreditReportSingleDto;
import top.healthylife.gateway.platform.bank.dto.res.BankResAggregationDataDto;

/**
 * @author : GaoZeXi
 * @date 2021/8/13 17:46
 */
@Slf4j
@Service
@AllArgsConstructor
@ApiModel("数据聚合接口")
@ApiServiceExplain(price = 20, docUrl = "-", apiName = "数据聚合接口", info = "数据来源于[企业征信报告单笔查询]")
public class BankAggregationDataApi implements ParentFace<BankReqBusinessCreditReportSingleDto, BankResAggregationDataDto> {

    BankBusinessCreditReportSingleApi bankBusinessCreditReportSingleApi;

    @Override
    public BankResAggregationDataDto execute(BankReqBusinessCreditReportSingleDto t) throws Exception {
        BankResBusinessCreditReportSingleDto execute = bankBusinessCreditReportSingleApi.execute(t);
        BankResAggregationDataDto bankResAggregationDataDto = new BankResAggregationDataDto();
        //fixme 修正统计口径
        return bankResAggregationDataDto;
    }
}
